#include<bits/stdc++.h>
using namespace std;
bool ed[100005],dead[100005];
int r[100005];

int main(){
    ios::sync_with_stdio(false);
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n,ans;
    cin >> n;
    ans = n;
    for(int i = 0; i < n; i++){
        cin >> r[i];
    }
    sort(r,r + n);
    for(int i = 0; i < n; i++){
        for(int j = i + 1; j <= n; j++){
            if(r[i] < r[j] && ed[j] != 1 && dead[i] != 1){
                ans--;
                ed[j] = 1;
                dead[i] = 1;
                break;
            }
        }
    }
    cout << ans;
    return 0;
}